/<template>
  <el-dialog :visible="visible" :show-close="false">
    <el-form :model="formData">
    <el-form-item label="店铺名称" label-width="120px">
        <el-input v-model="formData.name" autocomplete="off"></el-input>
    </el-form-item>
    <el-form-item label="店铺地址" label-width="120px">
        <el-input v-model="formData.address" autocomplete="off"></el-input>
    </el-form-item>
    <el-form-item label="店铺描述" label-width="120px">
        <el-input v-model="formData.desc" autocomplete="off"></el-input>
    </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
    <el-button @click="handleClose">取 消</el-button>
    <el-button type="primary" @click="handleConfirm">确 定</el-button>
    </div>
</el-dialog>
</template>

<script>
export default {
    props: {
        visible: {
            type: Boolean,
            default: false,
        },
        formData: {
            type: Object,
            default: () => {
                return {
                    name: '',
                    address: '',
                    desc: '',
                }
            }
        }
    },
    methods: {
        handleClose() {
            this.$emit('onClose')
        },
        handleConfirm() {
            this.$emit('onConfirm')
        }
    }
}
</script>

<style>

</style>